package com.example.idlefish.PublicModule

import android.os.Build.HOST
import com.example.idlefish.PublicModule.ApplicationConst

class NetworkSettings {
    companion object{

        // IP 移步ApplicationConst里
        private const val HOST = ApplicationConst.server_ip



        private const val PORT = "8080"
        private const val PROTOCOL = "http"

        const val HTTP = "$PROTOCOL://$HOST:$PORT/"
        const val GETALL = "$PROTOCOL://$HOST:$PORT/all" // 查询的 URL
        const val USER = "$PROTOCOL://$HOST:$PORT/user/"
        const val COLLECTION = USER + "collection"
        const val BROWSE = USER + "browse"
        const val MYPOST = USER + "mypost"
        const val MYSOLD = USER + "mysold"
        const val MYBUY = USER + "mypurchased"


    }
}
